
import {lazy} from 'react'
import {Outlet,Navigate } from 'react-router-dom'
// import Main from './main'
// import Badserver from './Badserver'
// import NotFound from './NotFound'
const User = lazy(()=>import('./user'))
const List = lazy(()=>import('./list'))
const Add = lazy(()=>import('./add'))
const Data = lazy(()=>import('./data'))

export default [
    {
        path:"/home/mine/user",
        element:<User></User>,
        children:[
            {
                path:"/home/mine/user",
                element:<Navigate replace to='/home/mine/user/list'></Navigate>
            }, 
            {
                path:"/home/mine/user/list",
                element:<List></List>
            },
            {
                path:"/home/mine/user/add",
                element:<Add></Add>
            },
            {
                path:"/home/mine/user/data",
                element:<Data></Data>
            }
        ]
    }
]